home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <!DOCTYPE pack SYSTEM "zapper.dtd">
-
- <pack version="3.0"
- title="Server Pack"
- url="http://server.zapper.com/services/Provide?name=guidelet">
-
- <hier>
- <glref label="IntelliZap"
- url="IntelliZap"/>
- </hier>
-
- <zaplet title="IntelliZap" url="IntelliZap" type="extended">
- <desc>
- Search the Web for %[[keyword]%] in the surrounding context.
- </desc>
- <script lang="javascript"><![CDATA[function zaplet(text,context,location)
- {
- var req = new HttpRequest("http://alg.zapper.com/intellizap/intellizap.jsp");
- req.setMethod("POST");
- req.addParam("text=" + text);
- req.addParam("context=" + context);
- req.addParam("location="+ location);
- req.addParam("engine=mixed");
-
- // finding possible empty context
- var strContext = context;
- var re = /[ \t\n]+/;
- strContext = strContext.replace( re, "" );
- if ( strContext.length == 0 ){
- req.addParam( "zoom=1" );
- }
- return req;
- }]]></script>
- </zaplet>
-
- </pack>
-